<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Change P Tag Content</title>
</head>
<body>
<p id="myParagraph">This is the original text.</p>
<button onclick="changeText()">Change Text</button>

<script>
  function changeText() {
    document.getElementById('myParagraph').innerHTML = "This is the updated text!";
  }
</script>
</body>
</html>
